gtkthemingengine: Fix a definite use of an uninitialised variable
authorPhilip Withnall <philip.withnall@collabora.co.uk>
Wed, 20 Nov 2013 17:35:04 +0000 (17:35 +0000)
committerPhilip Withnall <philip.withnall@collabora.co.uk>
Mon, 2 Dec 2013 10:36:26 +0000 (10:36 +0000)
commit5c5390f74b73d499dd27bac2d93c8b7b6fe35291
treea50aef0a1970265f468a9caaa0a98952d85d4ed9
parent99a162c69e0eb21d8b9fa6b127c69c7c536366fd
gtkthemingengine: Fix a definite use of an uninitialised variable

At this point, segments[1] is always uninitialised, and is used to
initialise itself. Looking at the code in the branch above, this appears
to have been a typo from segments[0], as segments[1] seems to typically
be 2 * segments[0].

Found by scan-build.

https://bugzilla.gnome.org/show_bug.cgi?id=712760
gtk/gtkthemingengine.c